# -*- coding: utf-8 -*-

import FileUtils as fu

print('hello word')

fileUtils = fu.FileUtils
newline = fileUtils.readLine(fileUtils, "D:\\Users\\yincy\\Desktop\\yin\\das需求\\交通\\飞机票线路\\2\\newflightline.txt")
# for soaline in newline:
# print(soaline)

print(len(newline))

oldline = fileUtils.readLine(fileUtils, "D:\\Users\\yincy\\Desktop\\yin\\das需求\\交通\\飞机票线路\\2\\oldflightline.txt")
# for soaline in newline:
#     if soaline not in oldline:
#          print(soaline)

# for soaline in oldline:
#     if soaline not in newline:
        # print(soaline)

# 写入文件
fileUtils.writeLine(fileUtils,"D:\\Users\\yincy\\Desktop\\yin\\das需求\\交通\\飞机票线路\\2\\trytowrite.txt", oldline)

# 新增字典
# d = {}
# for soaline in oldline:
#     d[soaline] = soaline
#
# # 打印字典
# keys = d.keys()
# for key in keys:
#     print(key)
#
# print(len(oldline))
